package messge;

import com.woniuxy.gobang.ui.Global;

public class WinMessage extends Message {
	private static final long serialVersionUID = 1L;
	public static final int WIN_MESSEAGE_BLACK = 1;
	public static final int WIN_MESSEAGE_WHITE = 2;
	public static final int DRAW_MESSEAGE = 3;

	private int flag;
	private String Account;
	private int id;
	//默认收到消息方为胜利者 reverse=true则相反
	private boolean reverse;
	
	public WinMessage(int flag) {
		this.flag = flag;
		this.Account = Global.user.getAccount();
		this.id= Global.user.getId();
	}
	
	public WinMessage(int flag,boolean reverse) {
		this.flag = flag;
		this.Account = Global.user.getAccount();
		this.id= Global.user.getId();
		this.reverse = reverse;
	}

	public int getFlag() {
		return flag;
	}
	
	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getAccount() {
		return Account;
	}

	public void setAccount(String account) {
		Account = account;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isReverse() {
		return reverse;
	}

	public void setReverse(boolean reverse) {
		this.reverse = reverse;
	}
	
	

}
